package com.example.myproject;
import java.io.IOException;
import javax.servlet.http.*;

@SuppressWarnings("serial")
public class HouseMapServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		resp.setContentType("text/html");
		resp.getWriter().println("<html> " +
				"<form action=\"SearchPage.jsp\" method=\"get\">"
		  + "Centre Location: <input type=\"text\" name=\"centreLocation\" /><br />"
		  + "<input type=\"submit\" value=\"Search\" />"
		  + "</form>"
		  +	"</html>");
	
		resp.getWriter().println("<html>" +
				"<form action=\"postPage.jsp\" method=\"get\">"
			+  	"Name: <input type=\"text\" name=\"name\">"
			+   "House Address: <input type=\"text\" name=\"homeAddress\">"
			+   "Email Address: <input type=\"text\" name=\"email\">"
			+   "Phone No.: <input type=\"text\" name=\"phoneNo\">"
			+   "<input type=\"submit\" + value=\"Post\">"
			);
	
	
	}
}



